package grape.workflow.rest.form.vo;

import grape.common.rest.vo.BaseIdVo;
import grape.common.rest.vo.BaseVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.flowable.engine.form.FormType;

/**
 * Created by yangwei
 * Created at 2020/7/1 17:22
 */
@Data
@EqualsAndHashCode(callSuper=false)
@ApiModel(value="动态表单数据响应对象")
public class DynamicFormVo extends BaseVo {

    @ApiModelProperty("id,属性名")
    private String id;

    @ApiModelProperty("名称/标签")
    private String name;

    @ApiModelProperty("类型")
    private DynamicFormTypeVo type;

    @ApiModelProperty("是否必填")
    private Boolean isRequired = false;

    @ApiModelProperty("是否只读的")
    private Boolean isReadable = false;

    @ApiModelProperty("是否可写")
    private Boolean isWritable = false;

    @ApiModelProperty("值")
    private String value;
}
